<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<h3 align="center">SYSTEM OF THE CITY TRANSPORT</h3>

<logic:present name="auth" scope="session">

	<h3 align="center">
		Hello, ${auth.name}
		<br/>
		<html:link href="logout.do">Log out</html:link>
	</h3>

</logic:present>

<logic:notPresent name="auth" scope="session">

	<h3 align="center">
		<html:link href="login.jsp">Sign in</html:link>
		<html:link href="registration.jsp">Registration</html:link>
	</h3>

</logic:notPresent>
